package com.iot.spi.core.annotation;

import org.springframework.stereotype.Component;

import java.lang.annotation.*;

/**
 * 自定义标记注解
 * @author lcc

 */
@Component
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Topic {

    /**
     * 产品code
     * @return
     */
    String productCode() default "watch";

    /**
     * 物模型功能码
     * @return
     */
    String modelCode() default "UD";
}
